﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
/**
id：评论id，数据类型为int
ownerId：发评人id，数据类型为int
text：评论内容，数据类型为string
time：发评时间，数据类型为datatime
postId：帖子id，数据类型为int
**/
namespace Api.Model
{
    public class Comment
    {
        [Key]
        public int id { get; set; }
        public int ownerId { get; set; }
        public string? text { get; set; }
        public DateTime time { get; set; }
        public int postId { get; set; }
    }
}
